package com.csc775.message;

import java.io.Serializable;

public class ControlPacket implements Serializable {
	private int requestType;
	private String sourceIP;
	private int sourcePort;
	private String destinationIP;
	private int destinationPort;
	private int lengthOfExtraData;
	private String extraData;
	
	public int getLengthOfExtraData() {
		return lengthOfExtraData;
	}
	public void setLengthOfExtraData(int lengthOfExtraData) {
		this.lengthOfExtraData = lengthOfExtraData;
	}
	public String getExtraData() {
		return extraData;
	}
	public void setExtraData(String extraData) {
		this.extraData = extraData;
	}
	public int getRequestType() {
		return requestType;
	}
	public void setRequestType(int requestType) {
		this.requestType = requestType;
	}
	public String getSourceIP() {
		return sourceIP;
	}
	public void setSourceIP(String sourceIP) {
		this.sourceIP = sourceIP;
	}
	public int getSourcePort() {
		return sourcePort;
	}
	public void setSourcePort(int sourcePort) {
		this.sourcePort = sourcePort;
	}
	public String getDestinationIP() {
		return destinationIP;
	}
	public void setDestinationIP(String destinationIP) {
		this.destinationIP = destinationIP;
	}
	public int getDestinationPort() {
		return destinationPort;
	}
	public void setDestinationPort(int destinationPort) {
		this.destinationPort = destinationPort;
	}

	public void displayControlPacket(){
		System.out.println("requestType       ==>"+requestType);
		System.out.println("sourceIP          ==>"+sourceIP);
		System.out.println("sourcePort        ==>"+sourcePort);
		System.out.println("destinationIP     ==>"+destinationIP);
		System.out.println("destinationPort   ==>"+destinationPort);
		System.out.println("lengthOfExtraData ==>"+lengthOfExtraData);
		System.out.println("extraData         ==>"+extraData);
	}
}
